import request from '@/utils/request'

// 查询医院科室关联列表
export function listhospitaldepartment(query) {
  return request({
    url: '/hospital/hospitaldepartment/list',
    method: 'get',
    params: query
  })
}

// 查询医院科室关联详细
export function gethospitaldepartment(id) {
  return request({
    url: '/hospital/hospitaldepartment/' + id,
    method: 'get'
  })
}

// 新增医院科室关联
export function addhospitaldepartment(data) {
  return request({
    url: '/hospital/hospitaldepartment',
    method: 'post',
    data: data
  })
}

// 修改医院科室关联
export function updatehospitaldepartment(data) {
  return request({
    url: '/hospital/hospitaldepartment',
    method: 'put',
    data: data
  })
}

// 删除医院科室关联
export function delhospitaldepartment(id) {
  return request({
    url: '/hospital/hospitaldepartment/' + id,
    method: 'delete'
  })
}
